<?php 
/**
* 
*/
class CentrosContinuidadController extends Sgit_Controller_Action
{

    protected $_main_model='CentrosContinuidad';
    protected $_main_form='CentrosContinuidad';
    protected $_checkZona = TRUE;
    

    


    public function indexAction()
    {
        $this->_element->CCSistemas=new  Sgit_Form_Element_Select_Xml('CCSistemas');
        
        $rows = $this->_model->default->getAllByZona($this->_idZona);
        $this->view->rows =$this->_prepareRowsToTr($rows);
    
    }
	
    public function editarAction()
    {
        $this->_editar();
    }
    
    public function insertarAction()
    {
        $this->_insertar();
    }
    
    public function borrarAction()
    {
        $this->_borrar();
    }
    
    public function _prepareValuesToTr($row)
    {
       $row['carga']=$this->_element->CCSistemas->getMultiOption($row['carga']);

       return $row;
    }


	

	
}


